-
Notifications
You must be signed in to change notification settings - Fork 31
Update dlpack to v1.2 #2193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Update dlpack to v1.2 #2193
Conversation
|
View rendered docs @ https://intelpython.github.io/dpctl/pulls/2193/index.html |
|
Array API standard conformance tests for dpctl=0.22.0dev0=py310h93fe807_26 ran successfully. |
| kDLWebGPU | ||
| kDLHexagon | ||
| kDLMAIA | ||
| kDLTrn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, I didn't think we would need to make a change for that part, but I'll adjust it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all logic should now be updated
shape and strides are both set to NULL for ndim == 0 only, and conversely, when converting from dlpack, shape and strides are simplified a bit if NULL is provided
This PR proposes updating the vendored DLPack header
dlpack.hto v1.2 and adds data type code and device type enum definitions where necessaryIt does not work towards supporting the new C functions to optimize speed of exchange, which could be done in a follow-up PR